/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package poolphysics;

/**
 *
 * @author Gerrit
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Ball ball = new Ball(0.0615,0.210); /** Create a ball of diameter 61.5mm, usual
                                       * for three cushion billiards.
         */
        Stick stick = new Stick(0.54); /** Create a stick with weight 0.54 kg, the
                                        * most common weight for cue sticks.
         */
        double stickangle = 0.1*Math.PI; //the angle of the stick(vertical)

        double v0 = 1.0; //speed of the cue just before hitting the ball

        double a = 0.0; //the horizontal offset of the stick
        double b = 0.0; // the vertical offset of the stick

        ball.hit(a, b, stickangle, 0, v0, 0.5);

        System.out.println(ball.toString());







        
    }

}
